/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
using DGZImp.SysEntity;

namespace DGZImp.BizEntity.DomainModels
{
    [Entity(TableCnName = "物流点",TableName = "LogisticSites",DBServer = "ServiceDbContext")]
    public partial class LogisticSites:ServiceEntity
    {
        /// <summary>
       ///点位类型
       /// </summary>
       [Display(Name ="点位类型")]
       [Column(TypeName="sbyte")]
       [Editable(true)]
       public sbyte? site_type { get; set; }

       /// <summary>
       ///物流点编号
       /// </summary>
       [Display(Name ="物流点编号")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string site_code { get; set; }

       /// <summary>
       ///物流点名称
       /// </summary>
       [Display(Name ="物流点名称")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string site_name { get; set; }

       /// <summary>
       ///启用
       /// </summary>
       [Display(Name ="启用")]
       [Column(TypeName="sbyte")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public sbyte is_enabled { get; set; }

       /// <summary>
       ///虚拟点位
       /// </summary>
       [Display(Name ="虚拟点位")]
       [Column(TypeName="sbyte")]
       [Editable(true)]
       public sbyte? is_virsual { get; set; }

       /// <summary>
       ///ID
       /// </summary>
       [SugarColumn(IsPrimaryKey = true)]
       [Key]
       [Display(Name ="ID")]
       [MaxLength(36)]
       [Column(TypeName="uniqueidentifier")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public Guid id { get; set; }

       /// <summary>
       ///创建人
       /// </summary>
       [Display(Name ="创建人")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       public string Creater { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? CreateTime { get; set; }

       /// <summary>
       ///修改人
       /// </summary>
       [Display(Name ="修改人")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       public string Modifier { get; set; }

       /// <summary>
       ///修改时间
       /// </summary>
       [Display(Name ="修改时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? ModifyTime { get; set; }

       /// <summary>
       ///工厂id
       /// </summary>
       [Display(Name ="工厂id")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       public string plant_id { get; set; }

       /// <summary>
       ///创建人ID
       /// </summary>
       [Display(Name ="创建人ID")]
       [MaxLength(100)]
       [Column(TypeName="int(10)")]
       [Editable(true)]
       public int CreateID { get; set; }

       /// <summary>
       ///修改人ID
       /// </summary>
       [Display(Name ="修改人ID")]
       [MaxLength(100)]
       [Column(TypeName="int(10)")]
       [Editable(true)]
       public int ModifyID { get; set; }

       /// <summary>
       ///逻辑删除标志
       /// </summary>
       [Display(Name ="逻辑删除标志")]
       [Column(TypeName="int")]
       public int? IsValid { get; set; }

        /// <summary>
        ///备注
        /// </summary>
        [Display(Name = "备注")]
        [Column(TypeName = "nvarchar(max)")]
        [Editable(true)]
        public string Remarks { get; set; }
    }
}